From cbdeb8076e485f71de6113537be80f26ee76151f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Thu, 22 May 2025 03:27:51 +0200 Subject: [PATCH] dbusServices/extensions: Use regular constructors Regular constructors have worked for GObject subclasses for a couple of years now. While there is no functional difference to _init(), it's simply nicer to use the same syntax for all classes, so quickly change that before doing further changes. Part-of: --- js/dbusServices/extensions/extensionPrefsDialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/dbusServices/extensions/extensionPrefsDialog.js b/js/dbusServices/extensions/extensionPrefsDialog.js index 75687c7a8..f6061a9be 100644 --- a/js/dbusServices/extensions/extensionPrefsDialog.js +++ b/js/dbusServices/extensions/extensionPrefsDialog.js @@ -13,8 +13,8 @@ export const ExtensionPrefsDialog = GObject.registerClass({ 'loaded': {}, }, }, class ExtensionPrefsDialog extends Adw.PreferencesWindow { - _init(extension) { - super._init({ + constructor(extension) { + super({ title: extension.metadata.name, search_enabled: false, }); @@ -94,8 +94,8 @@ const ExtensionPrefsErrorPage = GObject.registerClass({ return klass; } - _init(extension, error) { - super._init(); + constructor(extension, error) { + super(); this._addCustomStylesheet(); -- 2.39.5